package com.youdianda.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youdianda.entity.YddAdvimg;
import com.youdianda.vo.IndexBannerVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mosen
 * @since 2023-05-15
 */
public interface YJJddAdvimgMapper extends BaseMapper<YddAdvimg> {

    /**
     * 查询详情广告图
     * @return
     */
    @Select("SELECT * FROM ydd_advimg   WHERE advimgpos=12 OR advimgpos=13")
    List<IndexBannerVO> getShowBanner();
    @Select("SELECT * FROM ydd_advimg WHERE advimgpos=14")
    List<IndexBannerVO> getSideBanner();
    @Select("SELECT * FROM ydd_advimg WHERE advimgpos=15")
    List<IndexBannerVO> Banner();

}
